 <!DOCTYPE html>
 <html>
 <head>
 	<title>信息无限分类管理</title>
 	<meta charset = "utf8">
 </head>
 <body>
 	<include file='Public/menu'/>

 	<center>
 		<table width="500" border="0">
 			<tr>
 				<td>
 				路径
 				<foreach name = 'roots' item = 'root'>
 					>> <a href="{:U('Home/Index/index2' , $root)}">{$root.name}</a>
 				</foreach>
 				</td>
 			</tr>
 		</table>
 		<table width="500" border="1">
 			<tr bgcolor="#cccccc">
	 			<td>id</td>
	 			<td>类名</td>
	 			<td>父id</td>
	 			<td>路径</td>
	 			<td>操作</td>
 			</tr>
 			<foreach name = 'rows' item = 'row'>
	 			<tr>
	 				<td>{$row.id}</td>
	 				<td>{$row.name}</td>
	 				<td>{$row.pid}</td>
	 				<td>{$row.path}</td>
	 				<td>
	 				<a href="{:U('Home/Index/index2' , $row)}">查看子类</a>
	 				&nbsp;&nbsp;
	 				<a href="{:U('Home/Add/add' , $row)}">添加子类</a>
	 				&nbsp;&nbsp;
	 				<a href="{:U('Home/Del/delDo' , $row)}">删除</a>
	 				</td>
	 			</tr>
 			</foreach>
 		</table>

 	</center>
 </body>
 </html>